package o;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import huawei.widget.HwSearchView;
import o.ewm.c;
import o.ewm.e;
import o.ewm.j;

public class ehm {
    public static void ˎ(Context context, HwSearchView hwSearchView) {
        if (evf.ˋ(context)) {
            ˊ(context, hwSearchView);
            ˋ(context, hwSearchView);
        }
    }

    private static void ˊ(Context context, HwSearchView hwSearchView) {
        View findViewById = hwSearchView.findViewById(j.ʼי);
        if (findViewById instanceof ImageView) {
            ((ImageView) findViewById).setImageDrawable(evf.ˋ(context, e.ˊᐝ));
        }
    }

    private static void ˋ(Context context, HwSearchView hwSearchView) {
        if (hwSearchView != null) {
            View findViewById = hwSearchView.findViewById(j.ʼՙ);
            if (findViewById instanceof TextView) {
                ((TextView) findViewById).setHintTextColor(evf.ॱ(context, c.ˊॱ));
            }
        }
    }
}
